<h1>Listing mail_settings</h1>

<table>
  <tr>
    <th>Address</th>
    <th>Authentication</th>
    <th>Port</th>
    <th>Domain</th>
    <th>User name</th>
    <th>Password</th>
  </tr>

<% @mail_settings.each do |mail_setting| %>
  <tr>
    <td><%=h mail_setting.address %></td>
    <td><%=h mail_setting.authentication %></td>
    <td><%=h mail_setting.port %></td>
    <td><%=h mail_setting.domain %></td>
    <td><%=h mail_setting.user_name %></td>
    <td><%=h mail_setting.password %></td>
    <td><%= mail_setting.status ? "是" : "否"  %></td>
    <td><%= link_to 'Show', admin_mail_setting_path(mail_setting) %></td>
    <td><%= link_to 'Edit', edit_admin_mail_setting_path(mail_setting) %></td>
    <td><%= link_to 'Destroy', admin_mail_setting_path(mail_setting), :confirm => 'Are you sure?', :method => :delete %></td>
    <td><%= link_to '设置为发送邮件', setmail_admin_mail_settings_path(:id => mail_setting.id)%></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New mail_setting', new_admin_mail_setting_path %>